package com.sz.stock.mapper;

import com.sz.stock.model.StockStopPoint;
import com.sz.stock.model.StockStopPointExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface StockStopPointMapper {
    int countByExample(StockStopPointExample example);

    int deleteByExample(StockStopPointExample example);

    int deleteByPrimaryKey(Integer stockRFId);

    int insert(StockStopPoint record);

    int insertSelective(StockStopPoint record);

    List<StockStopPoint> selectByExample(StockStopPointExample example);

    StockStopPoint selectByPrimaryKey(Integer stockRFId);

    @Select("SELECT b.STOCK_R_F_ID,b.STOCK_ID,b.STOCK_R_MAX,b.STOCK_F_MIX,b.STOCK_NOWDAY FROM T_STOCK a,T_STOCK_STOPPOINT b WHERE a.STOCK_ID=b.STOCK_ID AND a.STOCK_CODE=#{param}")
    StockStopPoint selectByStockCode(String code);

    int updateByExampleSelective(@Param("record") StockStopPoint record, @Param("example") StockStopPointExample example);

    int updateByExample(@Param("record") StockStopPoint record, @Param("example") StockStopPointExample example);

    int updateByPrimaryKeySelective(StockStopPoint record);

    int updateByPrimaryKey(StockStopPoint record);
}